SERVER=server
CLIENT=client
cc=g++

.PHNOY:all
all: $(SERVER) $(CLIENT)

$(SERVER):Tcpserver.cc
	$(cc) $^ -o $@ -std=c++11 -lpthread

$(CLIENT):Tcpclient.cc
	$(cc) $^ -o $@ -std=c++11 -lpthread

.PHONY:clean
clean:
	rm -f $(SERVER) $(CLIENT)	